package com.itheima.a;

import com.itheima.a.Employee;

public class Manager extends Employee {
    String Clerk;

    @Override
    public void showMsg() {
        System.out.println(toString());
    }

    public Manager() {
    }


    public Manager(String clerk) {
        Clerk = clerk;
    }

    public Manager(String name, String workId, String dept) {
        super(name, workId, dept);
    }

    public Manager(String name, String workId, String dept, String clerk) {
        super(name, workId, dept);
        Clerk = clerk;
    }

    public String getClerk() {
        return Clerk;
    }

    public void setClerk(String clerk) {
        Clerk = clerk;
    }

    @Override
    public String toString() {
        return super.toString()+"，他的经理是"+Clerk;
    }
}
